//action 是视图发出的带有type参数的对象
import * as lights from '../constants/TrafficLight';

export function changeGreen() {
    return {type:lights.CHANGE_GREEN}
}

export function changeYellow() {
    return {type:lights.CHANGE_YELLOW}
}

export function changeRed() {
    return {type:lights.CHANGE_RED}
}